<?php

namespace Yearnfar\Bundle\CmsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * image
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class image
{
    /**
     * @ORM\ManyToOne(targetEntity="term", inversedBy="images")
     * @ORM\JoinColumn(name="tid", referencedColumnName="id")
     */
    private $term;

    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var integer
     *
     * @ORM\Column(name="tid", type="integer")
     */
    private $tid;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=200)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="description", type="text")
     */
    private $description;

    /**
     * @var string
     *
     * @ORM\Column(name="url", type="json_array")
     */
    private $url;

    /**
     * @var string
     *
     * @ORM\Column(name="sign", type="string", length=200)
     */
    private $sign;

    /**
     * @var integer
     *
     * @ORM\Column(name="logtime", type="integer")
     */
    private $logtime;

    /**
     * @var integer
     *
     * @ORM\Column(name="deltime", type="integer")
     */
    private $deltime;


    /**
     * @param term $term
     * @return image
     */
    public function setTerm(term $term)
    {
        $this->term = $term;
        return $this;
    }

    /**
     * get term
     *
     * @return mixed
     */
    public function getTerm()
    {
        return $this->term;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set tid
     *
     * @param integer $tid
     * @return image
     */
    public function setTid($tid)
    {
        $this->tid = $tid;

        return $this;
    }

    /**
     * Get tid
     *
     * @return integer 
     */
    public function getTid()
    {
        return $this->tid;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return image
     */
    public function setName($name)
    {
        $this->name = $name;

        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set description
     *
     * @param string $description
     * @return image
     */
    public function setDescription($description)
    {
        $this->description = $description;

        return $this;
    }

    /**
     * Get description
     *
     * @return string 
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * Set url
     *
     * @param array $url
     * @return image
     */
    public function setUrl($url)
    {
        $this->url = $url;

        return $this;
    }

    /**
     * Get url
     *
     * @return array
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Set sign
     *
     * @param string $sign
     * @return image
     */
    public function setSign($sign)
    {
        $this->sign = $sign;

        return $this;
    }

    /**
     * Get sign
     *
     * @return string 
     */
    public function getSign()
    {
        return $this->sign;
    }

    /**
     * Set logtime
     *
     * @param integer $logtime
     * @return image
     */
    public function setLogtime($logtime)
    {
        $this->logtime = $logtime;

        return $this;
    }

    /**
     * Get logtime
     *
     * @return integer 
     */
    public function getLogtime()
    {
        return $this->logtime;
    }

    /**
     * Set deltime
     *
     * @param integer $deltime
     * @return image
     */
    public function setDeltime($deltime)
    {
        $this->deltime = $deltime;

        return $this;
    }

    /**
     * Get deltime
     *
     * @return integer 
     */
    public function getDeltime()
    {
        return $this->deltime;
    }
}
